package com.telecomyt.jwportal.activity.collect.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.telecomyt.jwportal.R;
import com.telecomyt.jwportal.activity.collect.bean.CollectBean;
import com.telecomyt.jwportal.utils.GlideUtils;

/**
 * @author created by chengDa
 * @time 2020/9/8  14:57
 * @description
 */
public class MyCollectAdapter extends BaseQuickAdapter<CollectBean.RecordsBean.UserCenterBean, BaseViewHolder> {
    public MyCollectAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, CollectBean.RecordsBean.UserCenterBean item) {
        helper.setText(R.id.mTvCollectName, item.getName());
        GlideUtils.loadCircle(mContext, item.getAvatar(), helper.getView(R.id.mIvCollectHead));

    }
}
